import Vue from 'vue'
import App from './App'
import Router from 'vue-router'
import 'normalize.css'
import 'mint-ui/lib/style.css'
import VueLazyload from 'vue-lazyload'



Vue.use(VueLazyload, {
	preLoad: 1,
	loading: require('../../../static/img/defaultimg.jpg'),
	 error: require('../../../static/img/errimg.png')
});

Vue.use(Router);

Vue.config.productionTip = false;
import Power from 'components/catlist/power';
import Gas from 'components/catlist/gas';
import Offshore from 'components/catlist/offshore';
import Onshore from 'components/catlist/onshore';
import Propulsion from 'components/catlist/propulsion';
import Industrial from 'components/catlist/industrial';
import Marine from 'components/catlist/marine';
import Microgrid from 'components/catlist/microgrid';

const router = new Router({
	// mode: 'history', 
	routes: [
		{ path: '/power', component: Power},
		{ path: '/gas', component: Gas},
		{ path: '/offshore', component: Offshore},
		{ path: '/onshore', component: Onshore},
		{ path: '/propulsion', component: Propulsion},
		{ path: '/industrial', component: Industrial},
		{ path: '/marine', component: Marine},
		{ path: '/microgrid', component: Microgrid}
	]
})

/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	components: { App },
	render: h => h(App)
})

